﻿<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui">
	<!-- 	<p:messages autoUpdate="true" /> -->
	<h:form >
		<p:messages autoUpdate="true" />
		<p:fieldset legend="Pénzátutalás">
			<p:panelGrid columns="3">

				<p:outputLabel for="starterBankAccount" value="Feladó" />
				<!-- 					<p:inputText id="starterBankAccount" required="true" size="10" value="#{customerMaintBean.checkingAccount1.bankAccountNumber}" /> -->
				<p:inputMask id="starterBankAccount" required="true" size="10" value="#{customerMaintBean.checkingAccount1.bankAccountNumber}" mask="9999999999" />
				<p:message for="starterBankAccount" />

				<p:outputLabel for="beneficiaryBankAccount" value="Kedvezményezett" />
				<!-- 					<p:inputText id="beneficiaryBankAccount" required="true" size="10" value="#{customerMaintBean.checkingAccount2.bankAccountNumber}" /> -->
				<p:inputMask id="beneficiaryBankAccount" required="true" size="10" value="#{customerMaintBean.checkingAccount2.bankAccountNumber}" mask="9999999999" />
				<!-- 		<p:inputMask id="beneficiaryBankAccount" required="true" mask="99999-99999" /> -->
				<p:message for="beneficiaryBankAccount" />

				<p:outputLabel for="sum" value="Összeg" />
				<p:inputText id="sum" required="true" value="#{customerMaintBean.transaction.sum}" />
				<p:message for="sum" />

				<p:commandButton process="@form" update="@form" value="Utalás" action="#{customerMaintBean.moneyTransfer()}" />
			</p:panelGrid>
		</p:fieldset>
	</h:form>
</ui:composition>